import java.util.ArrayList;
import java.util.Collections;


public class Lotto {
	public static int[] getNums(){
		ArrayList<Integer> aL = new ArrayList<Integer>();
		int[] win = new int[6];
		int p=0;
		for (int i=1; i<50;i++){
			aL.add(i);
		}
		Collections.shuffle(aL);
		for (int i=0; i<6; i++){
			win[i] = aL.get(p);
			aL.remove(p);
			p=0;
		}
		return Sort.sort(win);
	}
}
